//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "comm\fn_notification.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_display", "_status", "_params"];

DEFAULT_PARAM(_display,0,"");
DEFAULT_PARAM(_status,1,"Created");
if (_display != "") then {
	switch (toUpper(_status)) do {
		case "CREATED": { _status = "TaskCreated";};
		case "ASSIGNED": { _status = "TaskAssigned";};
		case "SUCCEEDED": { _status = "TaskSucceeded";};
		case "FAILED": { _status = "TaskFailed";};
		case "CANCELED": { _status = "TaskCanceled";};
		default { _status = "NotificationMessage";};
	};
	[_status,[_display]] call bis_fnc_showNotification;
};

TRACE("End");
TMFPROFILERSTOP;
